<if condition="$cateid eq 1">
	
	<table style="width: 100%;"  cellpadding="0" cellspacing="0" >
		<tr>
		<tpshop sql="select goods_type from `__PREFIX__goods_template` where parentid=$type_id limit 0,1" key="k4" item='v4'>
					<tpshop sql="select attr_name from `__PREFIX__goods_attribute` where type_id=$v4[goods_type] order by attr_id asc" key="k5" item='v5'>
						<td style="border: 1px solid #eee;padding:3px;background: #000;color: #fff; text-align: center;">{$v5.attr_name}</td>
					</tpshop>
			</tpshop>
		</tr>
			
			<tpshop sql="select id from `__PREFIX__goods_template` where parentid=$type_id" key="k2" item='v2'>
				<tr>
					<tpshop sql="select attr_value from `__PREFIX__goods_attr` where tem_id=$v2[id] order by attr_id asc" key="k3" item='v3'>
						<td style="border: 1px solid #eee;padding:3px; text-align: center;">{$v3.attr_value}</td>
					</tpshop>
				</tr>
			</tpshop>
	</table>
</if>
<if condition="$cateid eq 2">

       <tpshop sql="select * from `__PREFIX__goods_template` where id=$type_id" key="k2" item='v2'>
       <center><img src="{$v2.original_img}" alt=""></center>
			</tpshop> 
</if>